package matlap.client.services.teacher;

import java.util.List;

import matlap.shared.Teacher;
import matlap.shared.exceptions.MyException;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("teacher")
public interface TeacherService extends RemoteService {
	int getTeachersNumber();

	List<Teacher> getTeachers();

	List<Teacher> selectTeachersName();

	List<Teacher> getTeachersByName(String name);

	List<String> getUserNames();

	Teacher getTeacherByUserName(String userName);

	void updateTeacher(String userName, String firstName, String lastName,
			String address, int accept) throws MyException;

	void deleteTeacher(String userName) throws MyException;
}
